
<template>
  <div v-copy="vcopy">
    点击复制变量
  </div>
  <div v-copy="`vcopy1`">
    点击复制字符串
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const vcopy=ref('vcopy3')
</script>